package com.example.his.api.mis.impl;

import com.example.his.api.db.dao.RuleDao;
import com.example.his.api.mis.service.RuleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;

@Service
public class RuleServiceImpl implements RuleService {

  @Resource
  private RuleDao ruleDao;

  /**
   * 查询所有规则
   * @return 规则列表
   */
  @Override
  public ArrayList<HashMap> searchAllRule() {
    // 调用DAO层查询所有规则数据
    ArrayList<HashMap> list = ruleDao.searchAllRule();
    return list;
  }
}
